package com.cmc.cloud.cmclink.doc.vo.special.terminaldgteulimitedvo;

import java.time.LocalDate;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 港口各码头危险品单船作业限量维护 Base VO，提供给添加、修改、详细的子 VO 使用 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 * 
 * @author codegen
 */
@Data
public class TerminalDgTeuLimitedBaseVO {

    @Schema(description = "危险品类别", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{terminaldgteulimite.imoclass.notnull}")
    @Length(max = 64, message = "{terminaldgteulimite.imoclass.max.length}")
    private String imoClass;

    @Schema(description = "港口", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{terminaldgteulimite.polcode.notnull}")
    @Length(max = 64, message = "{terminaldgteulimite.polcode.max.length}")
    private String polCode;

    @Schema(description = "码头", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{terminaldgteulimite.terminalcode.notnull}")
    @Length(max = 50, message = "{terminaldgteulimite.terminalcode.max.length}")
    private String terminalCode;

    @Schema(description = "限量teu")
    @Length(max = 50, message = "{terminaldgteulimite.limitedteu.max.length}")
    private String limitedTeu;

    @Schema(description = "生效时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "{terminaldgteulimite.startdate.notnull}")
    private LocalDate startDate;

    @Schema(description = "失效时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "{terminaldgteulimite.enddate.notnull}")
    private LocalDate endDate;

    @Schema(description = "备注", example = "你猜")
    @Length(max = 200, message = "{terminaldgteulimite.remark.max.length}")
    private String remark;

    @Schema(description = "码头中文名称", example = "你猜")
    @Length(max = 50, message = "{terminaldgteulimite.terminalnamecn.max.length}")
    private String terminalNameCn;
}
